package cn.iocoder.yudao.module.system.controller.admin.qnaApplication.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDateTime;
import java.util.Date;

import cn.idev.excel.annotation.*;
import org.springframework.format.annotation.DateTimeFormat;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.TIME_ZONE_DEFAULT;

@Schema(description = "管理后台 - 需求申请 Response VO")
@Data
@ExcelIgnoreUnannotated
public class QnaApplicationRespVO {

    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "17049")
    @ExcelProperty("主键id")
    private Integer id;

    @Schema(description = "申请标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("申请标题")
    private String applicationTitle;

    @Schema(description = "申请原因", example = "不对")
    @ExcelProperty("申请原因")
    private String applicationReason;

    @Schema(description = "应用场景")
    @ExcelProperty("应用场景")
    private String applicationScenario;

    @Schema(description = "使用时间起始")
    @ExcelProperty("使用时间起始")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = TIME_ZONE_DEFAULT)
    private Date useTimeStart;

    @Schema(description = "使用时间结束")
    @ExcelProperty("使用时间结束")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = TIME_ZONE_DEFAULT)
    private Date useTimeEnd;

    @Schema(description = "联系电话", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("联系电话")
    private String contactPhone;

    @Schema(description = "联系地址")
    @ExcelProperty("联系地址")
    private String contactAddress;

    @Schema(description = "服务范围")
    @ExcelProperty("服务范围")
    private String serviceScope;

    @Schema(description = "预期成效")
    @ExcelProperty("预期成效")
    private String expectedEffect;

    @Schema(description = "系统名称", example = "张三")
    @ExcelProperty("系统名称")
    private String systemName;

    @Schema(description = "部署地点")
    @ExcelProperty("部署地点")
    private String deploymentLocation;

    @Schema(description = "系统IP")
    @ExcelProperty("系统IP")
    private String systemIp;

    @Schema(description = "系统URL")
    @ExcelProperty("系统URL")
    private String systemUrl;

    @Schema(description = "等级保护备案号")
    @ExcelProperty("等级保护备案号")
    private String levelProtectionCode;

    @Schema(description = "等保级别")
    @ExcelProperty("等保级别")
    private String levelProtectionLevel;

    @Schema(description = "回复内容")
    @ExcelProperty("回复内容")
    private String replyContent;

    @Schema(description = "回复时间")
    @ExcelProperty("回复时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = TIME_ZONE_DEFAULT)
    private Date replyTime;

    @Schema(description = "状态：未回复、已回复", example = "2")
    @ExcelProperty("状态：未回复、已回复")
    private String status;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = TIME_ZONE_DEFAULT)
    private Date createTime;

}
